package com.study;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.study.mapper")
public class ExceptionApp {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(ExceptionApp.class);
        ConfigurableApplicationContext applicationContext = springApplication.run(args);
    }
}


/*
A component required a bean of type 'com.study.mapper.UserMapper' that could not be found.
添加扫包即可：
@MapperScan(basePackages = {"com.study.mapper"})
 */